﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Cat_Miau
{
    class Program
    {
        static void Main(string[] args)
        {
            // initiate object
            Cat firstCat = new Cat();
            firstCat.Name = "Johny";
            firstCat.Color = "green";
            Cat secondCat = new Cat("George", "black");
            Cat thirdCat = new Cat() { Name = "Blacky", Color = "gray" };

            // make array of class Cat

            Cat[] catArray = new Cat[3];
            catArray[0] = firstCat;
            catArray[1] = secondCat;
            catArray[2] = thirdCat;

            foreach (Cat cats in catArray)
            {
                cats.SayMiau();
                Console.WriteLine("{2}. Cat {0} has {1} color",cats.Name,cats.Color,Sequence.NextNum());
            }



        }
    }
}
